package com.situ.storehouse.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.situ.storehouse.service.CountService;
import com.situ.storehouse.service.CountServiceImpl;
import com.situ.storehouse.util.BaseController;
import com.situ.storehouse.vo.LayuiTableVO;
//统计查询
@WebServlet("/countcontroller")
public class CountController extends BaseController {
	private static final long serialVersionUID = 1L;
	CountService service=new CountServiceImpl();
	//打开统计查询界面
	public void page(HttpServletRequest req,HttpServletResponse resp) throws ServletException, IOException {
		req.getRequestDispatcher("/WEB-INF/count.jsp").forward(req, resp);
	}
	
	//往表格中放数据
			public LayuiTableVO list(Integer page,Integer limit,String storedate){
				return  service.countSelect(page,limit,storedate);
			}
			

}
